﻿<Page x:Class="PasswordProvider.View.SequentialPageViewerPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"      
    xmlns:view="clr-namespace:PasswordProvider.View"
    Title="{Binding DisplayName}"
    ToolTip="{Binding ToolTip}"
    IsEnabled="{Binding IsEnabled}">
    
    <Page.Resources>
        

    </Page.Resources>
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        
        <TextBlock Grid.Row="0" FontSize="20" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,5,0,0"
                   ToolTip="{Binding Header.ToolTip}"
                   Visibility="{Binding Header.Visibility}"
                   Text="{Binding Header.DisplayName}"/>
        
        <Frame Grid.Row="1" Name="_frame" JournalOwnership="OwnsJournal" NavigationUIVisibility="Hidden"/>

        <Grid Grid.Row="3" Margin="5" HorizontalAlignment="Stretch" VerticalAlignment="Bottom">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            
            <Button Tag="Backward"
                    HorizontalAlignment="Center"
                    Visibility="{Binding BackCommand.Visibility}"
                    Content="{Binding BackCommand.DisplayName}"
                    ToolTip="{Binding BackCommand.ToolTip}"
                    IsEnabled="{Binding BackCommand.IsEnabled}"
                    Command="{Binding BackCommand.Command}"/>                
            
            <Button Grid.Column="1" Tag="Finish"
                    HorizontalAlignment="Center" 
                    Visibility="{Binding FinishCommand.Visibility}"
                    Content="{Binding FinishCommand.DisplayName}"
                    ToolTip="{Binding FinishCommand.ToolTip}"
                    IsEnabled="{Binding FinishCommand.IsEnabled}"
                    Command="{Binding FinishCommand.Command}"/>
            
            <Button Grid.Column="2" Tag="Forward" 
                    HorizontalAlignment="Center"
                    Visibility="{Binding ForwardCommand.Visibility}"
                    Content="{Binding ForwardCommand.DisplayName}"
                    ToolTip="{Binding ForwardCommand.ToolTip}"
                    IsEnabled="{Binding ForwardCommand.IsEnabled}"
                    Command="{Binding ForwardCommand.Command}"/>                        
        
        </Grid>
    </Grid>
</Page>
    